#ifndef __MY_FLASH_H
#define __MY_FLASH_H

#include "stm32f10x.h"                  // Device header


extern uint32_t MyFLASH_ReadWord(uint32_t Address);
extern uint16_t MyFLASH_ReadHalfWord(uint32_t Address);
extern uint8_t MyFLASH_ReadByte(uint32_t Address);
extern void MyFLASH_EraseAllPages(void);
extern void MyFLASH_ErasePage(uint32_t PageAddress);
extern void MyFLASH_ProgramWord(uint32_t Address, uint32_t Data);
extern void MyFLASH_ProgramHalfWord(uint32_t Address, uint16_t Data);

#endif  /* __MY_FLASH_H */
